home *** CD-ROM | disk | FTP | other *** search
- this.x = new XML();
- this.x.ignoreWhite = true;
- this.x.controller = this;
- this.x.onLoad = function()
- {
- var root = this.firstChild;
- this.controller.titoli = new Array();
- this.controller.n = new Array();
- this.controller.fields = new Array();
- this.controller.links = new Array();
- this.controller.linkArr = new Array();
- var i = 0;
- while(i < root.childNodes.length)
- {
- this.controller.titoli.push(root.childNodes[i].attributes.title);
- this.controller.n.push(root.childNodes[i].childNodes.length);
- var i2 = 0;
- while(i2 < root.childNodes[i].childNodes.length)
- {
- this.controller.fields.push(root.childNodes[i].childNodes[i2].attributes.title);
- this.controller.linkArr.push({title:root.childNodes[i].childNodes[i2].attributes.title,url:root.childNodes[i].childNodes[i2].attributes.url,fileType:root.childNodes[i].childNodes[i2].attributes.type});
- i2++;
- }
- i++;
- }
- this.controller.init();
- };
- this.loadMenu = function(file)
- {
- this.x.load(file);
- };
- this.loadMenu("0_tab.xml");
-